package com.ctshk.rpc.train.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(value="TrainProductStrategySaveReq对象", description="火车票加幅策略-保存加幅策略req")
public class TrainProductStrategySaveReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "trainProductId不能为空")
    @ApiModelProperty(value = "trainProductId")
    private Long trainProductId;

    @ApiModelProperty(value = "火车票产品加幅策略列表")
    @NotEmpty(message = "加幅策略不能為空")
    private List<TrainProductStrategyReq> trainProductStrategyReqList;

}
